var genUrl = function (uri) {
    var domain = document.domain;
    if(domain.indexOf("local")>-1){
        domain=domain+":8080";
    }else{
        domain=domain;
    }
    var apiMode = "/api";
    if(document.domain.indexOf("local")>-1 || document.domain.indexOf("test")>-1){
        apiMode = "/api3";
    }
    return document.location.protocol + "//"  + domain + apiMode + uri;
    // return  "http//"  + domain + apiMode + uri;
}
var ip=returnCitySN['cip'];
console.log(ip)
$.ajax({
    url:genUrl("/h5/download/checkIpAddress"),
    type: 'GET',
    contentType:"application/json",
    dataType:'json',
    async:false,
    data:{
        "ip":ip
    },
    success: function (res) {
        if(res.code=="0"){
            var ipType=res.data.ipType;
            if(ipType=="1"){//国内ip

            }else{//海外ip

            }
        }
        console.log(ip)
    }
})